package com.clayecloud.common.client.services.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.clayecloud.common.entity.User;
import com.clayecloud.common.mappers.UserMapper;
import com.clayecloud.common.client.services.UserService;
/**
 * @author  ClayeLink
 * @date  2021/12/31 14:51
 */
@Service
public class UserServiceImpl implements UserService{

    @Resource
    private UserMapper userMapper;

    @Override
    public int deleteByPrimaryKey(Integer userId) {
        return userMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(User record) {
        return userMapper.insert(record);
    }

    @Override
    public int insertSelective(User record) {
        return userMapper.insertSelective(record);
    }

    @Override
    public User selectByPrimaryKey(Integer userId) {
        return userMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(User record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(User record) {
        return userMapper.updateByPrimaryKey(record);
    }

}
